from django.db import models

class TemporaryURL(models.Model):
    url = models.URLField(max_length=200)
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.url

class Product(models.Model):
    name = models.CharField(max_length=200)
    shop_name = models.CharField(max_length=200,default='None')
    sold = models.FloatField()
    sales_volume = models.CharField(max_length=200,default=0)
    location = models.CharField(max_length=200)
    rating_1 = models.FloatField()
    rating_2 = models.FloatField()
    rating_3 = models.FloatField()

    def __str__(self):
        return self.name